package com.linkvin.ec.hcs.dao.model.sysadmin;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author qichao
 * @since 2017-12-12
 */
@TableName("sys_org")
public class Org extends Model<Org> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String code;
	private String name;
	private Integer parent;
    /**
     * 0:部门;1:分公司;2:子公司
     */
	private Integer type;
	@TableField("office_site")
	private String officeSite;
	@TableField("registry_site")
	private String registrySite;
	@TableField("legal_rep")
	private String legalRep;
	@TableField("registry_capital")
	private BigDecimal registryCapital;
	@TableField("corp_tel")
	private String corpTel;
	@TableField("entity_id")
	private Integer entityId;
	@TableField("gmt_create")
	private Date gmtCreate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParent() {
		return parent;
	}

	public void setParent(Integer parent) {
		this.parent = parent;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getOfficeSite() {
		return officeSite;
	}

	public void setOfficeSite(String officeSite) {
		this.officeSite = officeSite;
	}

	public String getRegistrySite() {
		return registrySite;
	}

	public void setRegistrySite(String registrySite) {
		this.registrySite = registrySite;
	}

	public String getLegalRep() {
		return legalRep;
	}

	public void setLegalRep(String legalRep) {
		this.legalRep = legalRep;
	}

	public BigDecimal getRegistryCapital() {
		return registryCapital;
	}

	public void setRegistryCapital(BigDecimal registryCapital) {
		this.registryCapital = registryCapital;
	}

	public String getCorpTel() {
		return corpTel;
	}

	public void setCorpTel(String corpTel) {
		this.corpTel = corpTel;
	}

	public Integer getEntityId() {
		return entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Org{" +
			", id=" + id +
			", code=" + code +
			", name=" + name +
			", parent=" + parent +
			", type=" + type +
			", officeSite=" + officeSite +
			", registrySite=" + registrySite +
			", legalRep=" + legalRep +
			", registryCapital=" + registryCapital +
			", corpTel=" + corpTel +
			", entityId=" + entityId +
			", gmtCreate=" + gmtCreate +
			"}";
	}
}
